/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import ejb.Utente;
import java.util.List;

/**
 *
 * @author Danilo
 */
public class Tool {
    
     
    public boolean userPresent(String user, List<Utente> u2){
         boolean trovato=false;
            int j=0;
            while(j<u2.size() && !trovato){
                if(u2.get(j).getUsername().equals(user))
                    trovato=true;
                j++;
            }
    
    return trovato;
    }
}
